const go/types.constant_
60 uses
go/types (current package)
api.go#L409: case constant_, variable, mapindex, value, commaok, commaerr:
assignments.go#L33: case constant_, variable, mapindex, value, commaok, commaerr:
assignments.go#L129: if x.mode() != constant_ {
builtins.go#L157: if x.mode() == constant_ {
builtins.go#L158: mode = constant_
builtins.go#L172: mode = constant_
builtins.go#L224: if check.recordTypes() && mode != constant_ {
builtins.go#L303: if x.mode() == constant_ && y.mode() == constant_ {
builtins.go#L351: if x.mode() == constant_ && y.mode() == constant_ {
builtins.go#L357: if check.recordTypes() && x.mode() != constant_ {
builtins.go#L463: if x.mode() == constant_ {
builtins.go#L509: if x.mode() == constant_ {
builtins.go#L519: if check.recordTypes() && x.mode() != constant_ {
builtins.go#L616: if x.mode() == constant_ && a.mode() == constant_ {
builtins.go#L627: if x.mode() != constant_ {
builtins.go#L641: if check.recordTypes() && x.mode() != constant_ {
builtins.go#L768: x.mode_ = constant_
builtins.go#L837: x.mode_ = constant_
builtins.go#L861: x.mode_ = constant_
builtins.go#L945: if x.mode() != constant_ || !isBoolean(x.typ()) {
call.go#L242: if x.isValid() && x.mode() != constant_ {
call.go#L760: x.mode_ = constant_
const.go#L23: assert(x.mode() == constant_)
const.go#L267: assert(x.mode() == constant_)
conversions.go#L21: constArg := x.mode() == constant_
conversions.go#L116: } else if x.mode() == constant_ && isInteger(x.typ()) && allString(T) {
expr.go#L176: if x.mode() == constant_ {
expr.go#L404: if x.mode() == constant_ {
expr.go#L561: if x.mode() == constant_ && y.mode() == constant_ {
expr.go#L622: if x.mode() == constant_ {
expr.go#L642: if y.mode() == constant_ {
expr.go#L683: if x.mode() == constant_ {
expr.go#L684: if y.mode() == constant_ {
expr.go#L835: if (x.mode() == constant_ || allInteger(x.typ())) && y.mode() == constant_ && constant.Sign(y.val) == 0 {
expr.go#L842: if x.mode() == constant_ && y.mode() == constant_ && isComplex(x.typ()) {
expr.go#L853: if x.mode() == constant_ && y.mode() == constant_ {
index.go#L80: if x.mode() == constant_ {
index.go#L309: if x.mode() == constant_ {
index.go#L430: if x.mode() != constant_ {
index.go#L466: if x.mode() == constant_ {
literals.go#L289: if x.mode() == constant_ {
operand.go#L29: constant_ // operand is a constant; the operand's typ is a Basic type
operand.go#L44: constant_: "constant",
operand.go#L159: case constant_:
operand.go#L191: if x.mode() == constant_ {
operand.go#L308: x.mode_ = constant_
range.go#L56: mode_: constant_,
recording.go#L28: case constant_:
recording.go#L65: if mode == constant_ {
stmt.go#L255: if v.mode() != constant_ {
stmt.go#L646: x.mode_ = constant_
typexpr.go#L101: x.mode_ = constant_
typexpr.go#L481: if x.mode() != constant_ {